<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<style type="text/css">
body {
    color: #333333;
    background-color: #FFFFFF;
    font-size: 12px;
    font-family: "Microsoft Yahei", 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.bg-lightbule {
    background-color: #f4f8fb !important;
}
#wrapper {
    height: 100%;
    overflow: hidden;
    width: 100%;
}
.m-20 {
    margin: 20px !important;
}
.w-7 {
    width: 70%;
}
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.border-n {
    border: none !important;
}
.portlet {
    background: #ffffff;
    border-radius: 5px;
    background-clip: padding-box;
    margin-bottom: 20px;
}
.portlet .portlet-heading {
    border-radius: 3px 3px 0px 0px;
    background-clip: padding-box;
    color: #ffffff;
    padding: 12px 20px;
}
.f-s-12 {
    font-size: 12px !important;
}
.pull-right {
    float: right;
}
.pull-right {
    float: right!important;
}
.btn {
    padding: 8px 12px;
    color: initial;
}
.btn-white{
	border: 1px solid #eaeaea !important;
    background-color: #ffffff;
}
.modal-title {
    margin: 0;
    line-height: 1.42857143;
}
h4 {
    font-size: 18px;
}
.modal-title {
    color: #000000 !important;
}
.border-t-a {
    border-top: 1px solid #aaaaaa;
}
hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
}
.portlet .portlet-heading {
		border-radius: 3px 3px 0px 0px;
		background-clip: padding-box;
		color: #ffffff;
		padding: 12px 20px;
	}
	.f-s-12 {
		font-size: 12px !important;
	}	
	.pull-right{
		float: right!important;
	}
	.btn {
    padding: 8px 12px;
    color: initial;
}
	.btn-white{
	border: 1px solid #eaeaea !important;
    background-color: #ffffff;
	}
	.f-s-12 .btn {
    font-size: 12px !important;
}
	.modal-title {
    color: #000000 !important;
}   
	.modal-title {
    margin: 0;
    line-height: 1.42857143;
}
h1, h2, h3, h4, h5, h6 {
    color: #505458;
    font-family: "microsoft yahei","Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 10px 0;
}
.h4, h4 {
    font-size: 18px;
}
	.border-t-a {
    border-top: 1px solid #aaaaaa;
}
hr {
    margin-top: 24px;
    margin-bottom: 24px;
    border: 0;
}
.collapse.in {
    display: block;
}
.portlet .portlet-body {
    background: #ffffff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 15px;
}
.p-r-7 {
    padding-right: 7% !important;
}

.p-t-0 {
    padding-top: 0px !important;
}
	.text-center-b:first-child {
    margin-top: 30px;
}
	.text-center-b {
		text-align: center;
		position: relative;
		margin: 30px 0px 15px;
		color: #000000;
		font-weight: bold;
}
	.text-center-b span {
    background: #ebeff2;
    padding: 0px 10px;
}
	.bg-white {
	    background-color: #ffffff !important;
	}
	.row {
    margin-right: -10px;
    margin-left: -10px;
}
	.col-md-6 {
    width: 50%;
	margin-left: 4%;
}
@media (min-width: 992px)
.col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 {
    float: left;
}
.modal .form-group {
    margin-bottom: 10px;
}
.form-horizontal .form-group {
    margin-left: -10px;
    margin-right: -10px;
}
.modal .form-horizontal .control-label {
    margin-right: -15px;
}
.form-horizontal .control-label {
    font-size: 12px;
    font-weight: normal;
}
.form-horizontal .control-label {
    padding-top: 7px;
    margin-bottom: 0;
    text-align: right;
}
	.col-md-8 {
    width: 66.66666667%;
}
.text-primary {
    color: #5d9cec;
}
.modal .form-control {
    height: 30px;
}
.form-control{
    background-color: #FFFFFF;
    border: 1px solid #E3E3E3;
    border-radius: 4px;
    color: #565656;
    padding: 7px 12px;
    }
.aaa{
font-size: 12px;
    list-style: none;
    color: #f6504d;
}
</style>
<script>
		
		$(function(){
			
			$("#bianji").click(function(){
				var salestheme=$("input[name='salesid']").val();
				var state = $('input[name="aa"]:checked').val();//1nan   2nv 
				var expectmony=$("input[name='expectmony']").val();
				var possibility= $('#possibility option:selected').val();
				var starstandard = $('input[name="dt_opport_starget"]:checked').val();
				var type= $('#type option:selected').val();
				var first= $('#first option:selected').val();
				var id=$("input[name='id']").val();
				if(salestheme==""){
					$("#aaa").css("display","block");
				}else{
					$("#aaa").css("display","none");
				}
				if(salestheme!=""){
					$(function(){
						
						    $.ajax({  
					            type: "get",   //提交的方法
					            url:"xiugai", //提交的地址  
					            data:{"salestheme" : salestheme,"state":state,"expectmony":expectmony,"possibility":possibility,
					            	"starstandard":starstandard,"type":type,"first":first,"id":id},
					            async: false,  
					            error: function(request) {  //失败的话
					                 alert("请将表单填写完整");  
					            },  
					            success: function(data) {  //成功
					            	$('#main').load('sa');
					            }  
					         });   
						
						}); 
				}
			})
		});
		</script>
</head>
<body class="bg-lightbule">
	<div id="wrapper" class="enlarged forced">
		<div class="content m-20">
			<div class="container-fluid w-7 ">
				<div id="qshow" style="z-index:0">
					<div class="portlet form-horizontal border-n">
						<div class="portlet-heading portlet-default">
							<div class="pull-right  f-s-12">
							<button class="btn btn-white waves-effect waves-light" id="bianji">编辑</button>
							<button class="btn btn-white waves-effect waves-light">删除</button>
							</div>
							<h4 class="modal-title text-dark"><span>销售机会</span></h4>
							<hr class="border-t-a">
						</div>
					
					<div class="col-md-6" style="margin-left:10%;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4" style="float: left;height: 30px; line-height:30px ; ">
									<span style="color: #ff0000;font-size: 16px;">*</span>
									机会主题:
								</label>
								<div style="width: 150px;float: left;">
								<input class="form-control" name="salesid" value="${list.get(0).getSalestheme()}"/>
								<input name="id" value="${list.get(0).getSalesid()}" type="hidden">
								<li class="aaa" id="aaa" style="display: none">必填项</li>
								</div>
							</div>
							
						</div>
					
					
					<div class="col-md-6" style="margin-left: 70%;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4" style="float: left;height: 30px; line-height:30px ; ">
									<span style="color: #ff0000;font-size: 16px;">*</span>
									客户：
								</label>
								<div style="width: 300px;float: left;">
								<div style="margin-top: 15px;">aa${list.get(0).getPossibility() }</div>
									
								</div>
							</div>
							
						</div>
					
					<div class="row" >
						<div class="col-md-6" style="margin-left:10%;margin-top: 50px;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4" style="float: left;height: 30px; line-height:30px ; ">
									状态:
								</label>
								<div style="width: 200px;float: left;">
								<c:if test="${list.get(0).getState() eq 1}">
								<input type="radio" name="aa" checked="checked"  value="1" style="width:20px;height:20px;">
								</c:if>
								<c:if test="${list.get(0).getState() != 1}">
								<input type="radio" name="aa"  value="1" style="width:20px;height:20px;">
								</c:if>
								跟踪
								<c:if test="${list.get(0).getState() eq 2}">
								<input type="radio" name="aa" checked="checked" value="2" style="width:20px;height:20px;">
								</c:if>
								<c:if test="${list.get(0).getState() != 2}">
								<input type="radio" name="aa" value="2" style="width:20px;height:20px;">
								</c:if>
								成功
								<c:if test="${list.get(0).getState() eq 3}">
								<input type="radio" name="aa" checked="checked" value="3" style="width:20px;height:20px;">
								</c:if>
								<c:if test="${list.get(0).getState() != 3}">
								<input type="radio" name="aa" value="3" style="width:20px;height:20px;">
								</c:if>
								失败
								<c:if test="${list.get(0).getState() eq 4}">
								<input type="radio" name="aa" checked="checked" value="4" style="width:20px;height:20px;">
								</c:if>
								<c:if test="${list.get(0).getState() != 4}">
								<input type="radio" name="aa" value="4" style="width:20px;height:20px;">
								</c:if>
								搁置
								<c:if test="${list.get(0).getState() eq 5}">
								<input type="radio" name="aa"   value="5" style="width:20px;height:20px;">
								</c:if>
								<c:if test="${list.get(0).getState() != 5}">
								<input type="radio" name="aa"   value="5" style="width:20px;height:20px;">
								</c:if>
								失效
								</div>
							</div>
						</div>
					</div>
					
					<div class="col-md-6" style="margin-left: 70%;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4" style="float: left;height: 30px; line-height:30px ; ">
									<span style="color: #ff0000;font-size: 16px;">*</span>
									预期金额：
								</label>
								<div style="width: 300px;float: left;">
								<div style="margin-top: 15px;"><input type="text" name="expectmony" value="${list.get(0).getExpectmony()}"/></div>
									
								</div>
							</div>
						</div>
					
					<div class="row" >
						<div class="col-md-6" style="margin-left:10%;margin-top: 50px;">
							<div class="form-group no-margin">
								
								<div style="width: 300px;float: left;">
								<label  class="control-label col-md-4 text-primary" style="float: left;height: 30px;margin-top:5px; line-height:30px ; ">
									<b>可能性:</b>
								</label>
								<select  style="width:170px;height: 30px;margin-top:15px;" id="possibility">
								<option ></option>
								 <c:if test="${list.get(0).getPossibility()  eq '10%'}">
								<option value="10%"  selected="selected">10%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '10%'}">
								<option value="10%">10%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '20%'}">
								<option value="20%"  selected="selected">20%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '20%'}">
								<option value="20%">20%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '30%'}">
								<option value="30%"  selected="selected">30%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '30%'}">
								<option value="30%">30%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '40%'}">
								<option value="40%"  selected="selected">40%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '40%'}">
								<option value="40%">40%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '50%'}">
								<option value="50%"  selected="selected">50%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '50%'}">
								<option value="50%">50%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '60%'}">
								<option value="60%"  selected="selected">60%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '60%'}">
								<option value="60%">60%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '70%'}">
								<option value="70%"  selected="selected">70%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '70%'}">
								<option value="70%">70%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '80%'}">
								<option value="80%"  selected="selected">80%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '80%'}">
								<option value="80%">80%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '90%'}">
								<option value="90%"  selected="selected">90%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '90%'}">
								<option value="90%">90%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility()  eq '100%'}">
								<option value="100%"  selected="selected">30%</option>
								</c:if>
								<c:if test="${list.get(0).getPossibility() != '100%'}">
								<option value="100%">100%</option>
								</c:if>
								</select>
								</div>
							</div>
						</div>
					</div>
					
					<div class="col-md-6" style="margin-left: 70%;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4 text-primary" style="float: left;height: 30px; line-height:30px ; ">
									<b>星标：</b>
								</label>
								<div style="width: 250px;float: left;">
								<div class="FORM-CONTROL_FLAG  col-md-8">
								<c:if test="${list.get(0).getStarstandard()==''}">
								<input type="radio" checked="checked" value="0" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<c:if test="${list.get(0).getStarstandard()!=''}">
								<input type="radio"  value="0" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<label>无</label>
								<c:if test="${list.get(0).getStarstandard()  eq 1}">
								<input type="radio" checked="checked"  value="1" name="dt_opport_starget"  style="width:18px;height:18px;"/>
								</c:if>
								<c:if test="${list.get(0).getStarstandard() != 1}">
								<input type="radio"  value="1" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<label><img src="../imgs/hdjimgs/starRed.png" ></label>
								
								<c:if test="${list.get(0).getStarstandard()  eq 2}">
								<input type="radio" checked="checked" value="2" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<c:if test="${list.get(0).getStarstandard() != 2}">
								<input type="radio"  value="2" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<label><img src="../imgs/hdjimgs/starYellow.png" ></label>
								
								<c:if test="${list.get(0).getStarstandard()  eq 3}">
								<input type="radio" checked="checked" value="3" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<c:if test="${list.get(0).getStarstandard() != 3}">
								<input type="radio"  value="3" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<label><img src="../imgs/hdjimgs/starBlue.png" ></label>
								<c:if test="${list.get(0).getStarstandard()  eq 4}">
								<input type="radio" checked="checked"  value="4" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								<c:if test="${list.get(0).getStarstandard() != 4}">
								<input type="radio"  value="4" name="dt_opport_starget" style="width:18px;height:18px;"/>
								</c:if>
								
								<label><img src="../imgs/hdjimgs/starGreen.png" ></label>
								
								</div>
								</div>
							</div>
						</div>
					<div style="margin-top:165px;"></div>
						<div class="row" >
						<div class="col-md-6" style="margin-left:10%;margin-top: 150px;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4 text-primary" style="float: left;height: 30px; line-height:30px ; ">
									<b>优选:</b>
								</label>
								<div style="width: 300px;float: left;">
								<select  style="width:170px;height: 33px;" id="first">
								<option ></option>
								<c:if test="${list.get(0).getFirst()  eq 1}">
								<option selected="selected" value="1">一级</option>
								</c:if>
								<c:if test="${list.get(0).getFirst() !=1}">
								<option value="1">一级</option>
								</c:if>
								<c:if test="${list.get(0).getFirst()  eq 2}">
								<option selected="selected" value="2">二级</option>
								</c:if>
								<c:if test="${list.get(0).getFirst() !=2}">
								<option value="2">二级</option>
								</c:if>
								<c:if test="${list.get(0).getFirst()  eq 3}">
								<option selected="selected" value="3">三级</option>
								</c:if>
								<c:if test="${list.get(0).getFirst() !=3}">
								<option value="3">三级</option>
								</c:if>
								</select>
								</div>
							</div>
						</div>
					</div>
					
					<div class="col-md-6" style="margin-left: 70%;">
							<div class="form-group no-margin">
								<label class="control-label col-md-4" style="float: left;height: 30px; line-height:30px ; ">
									类型:
								</label>
								<div style="width: 170px;float: left;">
								<select  style="width:170px;height: 33px;" id="type">
								<option value=""></option>
								<c:if test="${list.get(0).getType()  eq '办公建筑'}">
								<option selected="selected" value="办公建筑" >办公建筑</option>
								</c:if>
								<c:if test="${list.get(0).getType() != '办公建筑'}">
								<option  value="办公建筑">办公建筑</option>
								</c:if>
								<c:if test="${list.get(0).getType()  eq '住宅建筑'}">
								<option selected="selected" value="住宅建筑">住宅建筑</option>
								</c:if>
								<c:if test="${list.get(0).getType() != '住宅建筑'}">
								<option value="住宅建筑">住宅建筑</option>
								</c:if>
								<c:if test="${list.get(0).getType()  eq '商业建筑'}">
								<option selected="selected" value="商业建筑">商业建筑</option>
								</c:if>
								<c:if test="${list.get(0).getType() !='商业建筑'}">
								<option value="商业建筑">商业建筑</option>
								</c:if>
								<c:if test="${list.get(0).getType()  eq '医疗服务'}">
								<option selected="selected" value="医疗服务">医疗服务</option>
								</c:if>
								<c:if test="${list.get(0).getType() !='医疗服务'}">
								<option value="医疗服务">医疗服务</option>
								</c:if>
								<c:if test="${list.get(0).getType()  eq '文化健身'}">
								<option selected="selected" value="文化健身">文化健身</option>
								</c:if>
								<c:if test="${list.get(0).getType() !='文化健身'}">
								<option value="文化健身">文化健身</option>
								</c:if>
								</select>
								</div>
							</div>
						</div>
					
					
					</div>
				</div>				
			</div>
		</div>
	
	</div>



</body>
</html>



